<include file="header"/>
<body>
<div class="wraper">
	<div class="head">
		<a href="javascript:history.go(-1);" class="iconfont icon-fanhui72"></a>
		<span class="head-name">盆景分类</span>
	</div>
	<div class="search clearfix">
		<form action="{BEESCRM::U('base/bonsai/goodsList', array('wechat_id' => $wechat_id,'origin' => $origin))}" method="post" id="search-form">
			<input name="keyword" class="pull-left" type="text" value="{BEESCRM:$keyword}" placeholder="请输入关键词" id="keyword">
			<span class="pull-left" id="btn-submit">搜索</span>
		</form>
	</div>
	<div>
		<volist name="data" id="vo">
			<a href="{BEESCRM::U('/base/bonsai/goodsList', array('wechat_id' => $wechat_id, 'cate_id' => $vo['cate_id'] ))}" class="lists">{BEESCRM:$vo.cate_name}<span class="iconfont icon-you pull-right"></span></a>	
		</volist>
	</div>

	<include file="nav"/>
</div>
<include file="commonJs"/>
<script>
	var nav_h = $('.nav').height();
	$('.wraper').css('paddingBottom',nav_h+8);
	
	
	$(document).on('click', '#btn-submit', function(){
		var keyword = $('#keyword').val();
		keyword = keyword.replace(/^\s+|\s+$/g,"");
		if(!keyword){
			$.alert('error', '请输入关键词');return ;
		}
		$('#search-form').submit();
	});
	//去除左右空格
	 function trim(str){
		return str.replace(/^\s+|\s+$/g,"");
	} 
</script>
</body>
</html>
